package com.example.graduation.service.impl;

import com.example.graduation.dao.CompanyJobMapper;
import com.example.graduation.entity.CompanyJob;
import com.example.graduation.service.CompanyJobService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CompanyJobServiceImpl implements CompanyJobService {
    @Autowired
    private CompanyJobMapper companyJobMapper;

    @Override
    public List<CompanyJob> findAll() {
        return companyJobMapper.findAll();
    }

    @Override
    public CompanyJob findById(Integer id) {
        return companyJobMapper.findById(id);
    }

    @Override
    public List<CompanyJob> findByCompanyEmail(String companyEmail) {
        return companyJobMapper.findByCompanyEmail(companyEmail);
    }

    @Override
    public int insert(CompanyJob companyJob) {
        return companyJobMapper.insert(companyJob);
    }

    @Override
    public int update(CompanyJob companyJob) {
        return companyJobMapper.update(companyJob);
    }

    @Override
    public int deleteById(Integer id) {
        return companyJobMapper.deleteById(id);
    }
} 